package com.processmining.service;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.List;
import java.util.Map;

import org.deckfour.xes.model.XLog;

import com.github.pagehelper.PageInfo;
import com.processmining.entity.EventLog;
import com.processmining.entity.NormLog;

public interface IEventLogService extends ILogService{

	/**
	 * 按日志名搜索原始日志 （分页）
	 * @param pageNum	当前页数
	 * @param pageSize	页面条数
	 * @param info 日志名，若为空则返回整个列表
	 * @param uid 用户id 
	 * @return 除其他用户的不共享日志的日志列表
	 */
	public PageInfo<EventLog> searchByName(int pageNum,int pageSize,String info,Integer uid);
	
	/**
	 * 批量查询
	 * @param rawlogIds
	 * @return
	 */
	public List<EventLog> searchByPKList(List<Integer> eventlogIds,Integer uid);
	
	public boolean deleteIfExist(Integer eventlogId, Integer uid) throws IOException;

	
	/**
	 * 建立与原始日志、规范化日志联系
	 * @param normLog
	 * @param eventLog
	 * @return
	 */
	public boolean BuildRelationship(NormLog normLog,EventLog eventLog);
	
	/**
	 * 生成摘要信息
	 * @param eventLogId
	 * @return
	 */
	public boolean generateChiefInfo(Integer eventLogId);
	
	
	public boolean updateLog(EventLog log);

}
